// import {createBrowserHistory, createHashHistory} from "history"
import {createHashHistory} from "history"
import {unstable_HistoryRouter as HistoryRouter} from "react-router-dom"

// 前端路由用hash,后端路由用Browser(配套nginx:try_files $uri $uri/ /index.html; serve -d dist 不行)
const history = createHashHistory()

export {HistoryRouter, history}
